function addVideo() {
	var jc = $
			.confirm({
				title : '新增视频',
				type : 'blue',
				columnClass : 'col-md-6 col-md-offset-3',
				content : '<hr>'
						+ '<table  class="table table-bordered" style="text-align: center;">'
						+ '<tbody>'
						+ '<tr>'
						+ '<td>所属教师：</td>'
						+ '<td><select id="select_video_teacher" class="form-control" ></select></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>上课时间：</td>'
						+ '<td><input id="input_video_recordDate" class="form-control" /></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>课程名称：</td>'
						+ '<td><input id="input_video_lessonName" class="form-control" /></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>学段：</td>'
						+ '<td><select class="form-control" style="width: auto;" id="select_video_grade"><option value="幼儿园">幼儿园</option><option value="小学">小学</option><option value="初级中学">初级中学</option><option value="高级中学">高级中学</option><option value="专科类院校">专科类院校</option><option value="大学">大学</option><option value="其他培训类">其他培训类</option></select></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>录制说明：</td>'
						+ '<td><input id="input_video_memo" class="form-control" /></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>文件：</td>'
						+ '<td><input id="input_video_file" type="file" /></td>'
						+ '</tr>' + '</tbody>' + '</table>',
				onContentReady : function() {
					set_teacherList_inSelect(document
							.getElementById("select_video_teacher"));

				},
				buttons : {
					'创建' : {
						btnClass : 'btn-blue',
						action : function() {
							var xhr = false;
							xhr = new XMLHttpRequest();
							xhr.onreadystatechange = function() {
								var message;
								if (xhr.readyState == 4) {
									if (xhr.status == 200) {
										if (xhr.responseText == "1") {
											toastr.success("新增视频成功", "操作成功");
											jc.close();
											/*
											 * 刷新列表
											 */
											listVideo_andEvaluation_byUser();
										} else {
											toastr.error("", "操作失败");
										}
									} else {
										toastr.error(xhr.status);
									}
								}
							}
							var formData = new FormData();

							// if (input_video_name.value == "") {
							// toastr.error("类别名称不可为空", "操作失败");
							// return false;
							// }

							xhr.open("POST", "/jxfgyj/video/addVideo");

							formData.append("video.video_teacher",
									select_video_teacher.value);
							formData.append("video.video_recordDate",
									input_video_recordDate.value);
							formData.append("video.video_lessonName",
									input_video_lessonName.value);
							formData.append("video.video_grade",
									select_video_grade.value);
							formData.append("video.video_memo",
									input_video_memo.value);
							if (input_video_file.files[0] != null) {
								formData.append("videofile",
										input_video_file.files[0]);
							}
							xhr.send(formData);

							return false;
						}
					},
					'放弃' : function() {
					}
				}
			});
}